﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200066F RID: 1647
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetChallengeRaidInfoScRsp : IMessage<GetChallengeRaidInfoScRsp>, IMessage, IEquatable<GetChallengeRaidInfoScRsp>, IDeepCloneable<GetChallengeRaidInfoScRsp>, IBufferMessage
	{
		// Token: 0x17001551 RID: 5457
		// (get) Token: 0x06004A67 RID: 19047 RVA: 0x000CCAB3 File Offset: 0x000CACB3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetChallengeRaidInfoScRsp> Parser
		{
			get
			{
				return GetChallengeRaidInfoScRsp._parser;
			}
		}

		// Token: 0x17001552 RID: 5458
		// (get) Token: 0x06004A68 RID: 19048 RVA: 0x000CCABA File Offset: 0x000CACBA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetChallengeRaidInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001553 RID: 5459
		// (get) Token: 0x06004A69 RID: 19049 RVA: 0x000CCACC File Offset: 0x000CACCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetChallengeRaidInfoScRsp.Descriptor;
			}
		}

		// Token: 0x06004A6A RID: 19050 RVA: 0x000CCAD3 File Offset: 0x000CACD3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChallengeRaidInfoScRsp()
		{
		}

		// Token: 0x06004A6B RID: 19051 RVA: 0x000CCAF4 File Offset: 0x000CACF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChallengeRaidInfoScRsp(GetChallengeRaidInfoScRsp other) : this()
		{
			this.challengeRaidDataList_ = other.challengeRaidDataList_.Clone();
			this.takenRewardIdList_ = other.takenRewardIdList_.Clone();
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004A6C RID: 19052 RVA: 0x000CCB46 File Offset: 0x000CAD46
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChallengeRaidInfoScRsp Clone()
		{
			return new GetChallengeRaidInfoScRsp(this);
		}

		// Token: 0x17001554 RID: 5460
		// (get) Token: 0x06004A6D RID: 19053 RVA: 0x000CCB4E File Offset: 0x000CAD4E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<ChallengeRaid> ChallengeRaidDataList
		{
			get
			{
				return this.challengeRaidDataList_;
			}
		}

		// Token: 0x17001555 RID: 5461
		// (get) Token: 0x06004A6E RID: 19054 RVA: 0x000CCB56 File Offset: 0x000CAD56
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> TakenRewardIdList
		{
			get
			{
				return this.takenRewardIdList_;
			}
		}

		// Token: 0x17001556 RID: 5462
		// (get) Token: 0x06004A6F RID: 19055 RVA: 0x000CCB5E File Offset: 0x000CAD5E
		// (set) Token: 0x06004A70 RID: 19056 RVA: 0x000CCB66 File Offset: 0x000CAD66
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06004A71 RID: 19057 RVA: 0x000CCB6F File Offset: 0x000CAD6F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetChallengeRaidInfoScRsp);
		}

		// Token: 0x06004A72 RID: 19058 RVA: 0x000CCB80 File Offset: 0x000CAD80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetChallengeRaidInfoScRsp other)
		{
			return other != null && (other == this || (this.challengeRaidDataList_.Equals(other.challengeRaidDataList_) && this.takenRewardIdList_.Equals(other.takenRewardIdList_) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004A73 RID: 19059 RVA: 0x000CCBE4 File Offset: 0x000CADE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.challengeRaidDataList_.GetHashCode();
			num ^= this.takenRewardIdList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004A74 RID: 19060 RVA: 0x000CCC3F File Offset: 0x000CAE3F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004A75 RID: 19061 RVA: 0x000CCC47 File Offset: 0x000CAE47
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004A76 RID: 19062 RVA: 0x000CCC50 File Offset: 0x000CAE50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.challengeRaidDataList_.WriteTo(ref output, GetChallengeRaidInfoScRsp._repeated_challengeRaidDataList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			this.takenRewardIdList_.WriteTo(ref output, GetChallengeRaidInfoScRsp._repeated_takenRewardIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004A77 RID: 19063 RVA: 0x000CCCB0 File Offset: 0x000CAEB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.challengeRaidDataList_.CalculateSize(GetChallengeRaidInfoScRsp._repeated_challengeRaidDataList_codec);
			num += this.takenRewardIdList_.CalculateSize(GetChallengeRaidInfoScRsp._repeated_takenRewardIdList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004A78 RID: 19064 RVA: 0x000CCD14 File Offset: 0x000CAF14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetChallengeRaidInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.challengeRaidDataList_.Add(other.challengeRaidDataList_);
			this.takenRewardIdList_.Add(other.takenRewardIdList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004A79 RID: 19065 RVA: 0x000CCD72 File Offset: 0x000CAF72
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004A7A RID: 19066 RVA: 0x000CCD7C File Offset: 0x000CAF7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 80U)
				{
					if (num == 50U)
					{
						this.challengeRaidDataList_.AddEntriesFrom(ref input, GetChallengeRaidInfoScRsp._repeated_challengeRaidDataList_codec);
						continue;
					}
					if (num == 80U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				else if (num == 120U || num == 122U)
				{
					this.takenRewardIdList_.AddEntriesFrom(ref input, GetChallengeRaidInfoScRsp._repeated_takenRewardIdList_codec);
					continue;
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001D8F RID: 7567
		private static readonly MessageParser<GetChallengeRaidInfoScRsp> _parser = new MessageParser<GetChallengeRaidInfoScRsp>(() => new GetChallengeRaidInfoScRsp());

		// Token: 0x04001D90 RID: 7568
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001D91 RID: 7569
		public const int ChallengeRaidDataListFieldNumber = 6;

		// Token: 0x04001D92 RID: 7570
		private static readonly FieldCodec<ChallengeRaid> _repeated_challengeRaidDataList_codec = FieldCodec.ForMessage<ChallengeRaid>(50U, ChallengeRaid.Parser);

		// Token: 0x04001D93 RID: 7571
		private readonly RepeatedField<ChallengeRaid> challengeRaidDataList_ = new RepeatedField<ChallengeRaid>();

		// Token: 0x04001D94 RID: 7572
		public const int TakenRewardIdListFieldNumber = 15;

		// Token: 0x04001D95 RID: 7573
		private static readonly FieldCodec<uint> _repeated_takenRewardIdList_codec = FieldCodec.ForUInt32(122U);

		// Token: 0x04001D96 RID: 7574
		private readonly RepeatedField<uint> takenRewardIdList_ = new RepeatedField<uint>();

		// Token: 0x04001D97 RID: 7575
		public const int RetcodeFieldNumber = 10;

		// Token: 0x04001D98 RID: 7576
		private uint retcode_;
	}
}
